package com.breaktian.hybrid.modules.ui.plugin;

import com.breaktian.hybrid.base.BaseCordovaPlugin;
import com.breaktian.hybrid.base.CordovaActions;
import com.breaktian.hybrid.modules.ui.ShowDialogAction;
import com.breaktian.hybrid.modules.ui.ToastAction;

import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaWebView;

/**
 * Created by keke.tian on 2018/2/5.
 */

public class UIPlugin extends BaseCordovaPlugin{

    @Override
    public void initialize(CordovaInterface cordova, CordovaWebView webView) {
        super.initialize(cordova, webView);
        mActionMap.put(CordovaActions.ui.ACTION_GOPREPAGE,new ShowDialogAction());
        mActionMap.put(CordovaActions.ui.ACTION_TOAST,new ToastAction());
    }
}
